﻿<%@ Page Title="" Language="C#" MasterPageFile="~/admin/admin.Master" AutoEventWireup="true" CodeBehind="urunler.aspx.cs" Inherits="Elektronix.admin.urunler" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">

    <table>
        <br />
        <br />
        <br />
        <br />
        <tr>
            Yeni Ürün Ekle
            <th> Ürün Adı </th>
            <th> Model </th>
            <th> Fiyat</th>
            <th> Kategori</th>
            <th> Tedarikci</th>
            <th> Stok Miktarı</th>
            <th> Kritik stok Seviyesi</th>
            <th> İndirim %</th>
            <th> Ürün Durumu</th>
        </tr>
        <tr>
            <td> <asp:TextBox ID="txtUrunadi" runat="server"></asp:TextBox> </td>
            <td> <asp:TextBox ID="txtModel" runat="server"></asp:TextBox> </td>
            <td> <asp:TextBox ID="txtFiyat" runat="server"></asp:TextBox> </td>
            <td> <asp:DropDownList ID="ddlKategoriler" runat="server"></asp:DropDownList></td>
            <td> <asp:DropDownList ID="ddlTedarikciler" runat="server"></asp:DropDownList></td>
            <td> <asp:TextBox ID="txtstokmiktari" runat="server"></asp:TextBox> </td>
            <td> <asp:TextBox ID="txtKritikStok" runat="server"></asp:TextBox> </td>
            <td> <asp:TextBox ID="txtIndirim" runat="server"></asp:TextBox> </td>
            <td> <asp:DropDownList ID="ddlDurum" runat="server"></asp:DropDownList></td>
            <td> <asp:Button ID="btnEkle" runat="server" Text="Ürün Ekle" OnClick="btnEkle_Click" /> </td>
        </tr>
    </table>



    
             <table><tr>  <asp:Repeater runat="server" ID="resimlerrepeater">
                     <ItemTemplate>
                         <td> <a href='resimler.aspx?rid=<%#Eval("resimID") %>'> <img src='..<%#Eval("photopath") %>' alt="Alternate Text" width="100" height="80"/> </a></td>
                     </ItemTemplate>
                 </asp:Repeater>   </tr>
             </table>


    <table style="height: 212px">

         <tr>
            Ürün GÜncelle
            <th> Ürün Adı </th>
            <th> Model </th>
            <th> Fiyat</th>
            <th> Kategori</th>
            <th> Tedarikci</th>
            <th> Stok Miktarı</th>
            <th> Kritik stok Seviyesi</th>
            <th> İndirim %</th>
            <th> Ürün Durumu</th>
        </tr>
        <tr>
            <td> <asp:TextBox ID="txtGncProductName" runat="server"></asp:TextBox> </td>
            <td> <asp:TextBox ID="txtGncModel" runat="server"></asp:TextBox> </td>
            <td> <asp:TextBox ID="txtGncPrice" runat="server"></asp:TextBox> </td>
            <td> <asp:DropDownList ID="ddlGncKategori" runat="server"></asp:DropDownList></td>
            <td> <asp:DropDownList ID="ddlGncTedarikci" runat="server"></asp:DropDownList></td>
            <td> <asp:TextBox ID="txtGncStok" runat="server"></asp:TextBox> </td>
            <td> <asp:TextBox ID="txtGncKritik" runat="server"></asp:TextBox> </td>
            <td> <asp:TextBox ID="txtGncDiscount" runat="server"></asp:TextBox> </td>
            <td> <asp:DropDownList ID="ddlGncDurum" runat="server"></asp:DropDownList></td>
            <td> <asp:Button ID="btnGuncelle" runat="server" Text="Kaydet" OnClick="btnGuncelle_Click"  /> </td>







             <td><asp:FileUpload ID="FileuploadUrun" runat="server" />   </td>
             <td><asp:Button ID="btnFile" runat="server" Text="Yükle" OnClick="btnFile_Click" />  </td>


        </tr>
        <tr>
            <th>--</th>
            <th>---</th>
            <th>Urun ID</th>
            <th>Urun Adı</th>
            <th>Model</th>
            <th>Fiyat</th>
            <th>Kategory</th>
            <th>Tedarikçi</th>
            <th>Stok Miktarı</th>
            <th>Kritik Stok Seviyesi</th>
            <th>İndirim</th>
            <th>Ürün Durumu</th>
            <th>Tarih</th>
        </tr>
        <asp:Repeater ID="RepeaterUrunler" runat="server">
        <ItemTemplate>
        <tr>
            <td><a href='urunler.aspx?sil=<%#Eval("productID") %>'>Sil</a></td>
            <td><a href='urunler.aspx?gnc=<%#Eval("productID") %>'>Güncelle</a></td>
            <td><%#Eval("productID") %></td>
            <td><%#Eval("productname") %></td>
            <td><%#Eval("model") %></td>
            <td><%#Eval("price") %></td>
            <td><%#Eval("categoryname") %></td>
            <td><%#Eval("brand") %></td>
            <td><%#Eval("stock") %></td>  
            <td><%#Eval("reorderlevel") %></td>   
            <td><%#Eval("discount") %></td>
            <td><%#Eval("status") %></td>
            <td><%#Eval("adddate") %></td>
        </tr>
        </ItemTemplate>
        </asp:Repeater>
        <br />  
        <tr>  <td>
        <asp:Button ID="btnGeri" runat="server" Text="Geri" OnClick="btnGeri_Click" />
        <asp:Label ID="lblAktifSayfa" runat="server" Text="Label"></asp:Label>
        <asp:Button ID="btnIleri" runat="server" Text="íleri" OnClick="btnIleri_Click" /></td>  </tr>
    </table>
    




    <table>
        <br />
        <br />
        <br />
         <br />
         <br />
         <tr>
            Ürün Detaylı Sec
            <th> Kategoriye göre </th>
            <th> Markaya Göre </th>
            <th> Maximum Fİyat</th>
            <th> Maximum Stoga Göre</th>
            <th> Ürün Durumuna Göre</th>
        </tr>
        <tr>
            <td><asp:DropDownList ID="ddlGetirKategori" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddlGetirKategori_SelectedIndexChanged">
                <asp:ListItem>Hepsi</asp:ListItem>
                </asp:DropDownList>
            </td>
            <td><asp:DropDownList ID="ddlGetirTedarikci" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddlGetirTedarikci_SelectedIndexChanged"></asp:DropDownList></td>
            <td><asp:TextBox ID="txtMaxFiyat" runat="server"></asp:TextBox></td>
            <td><asp:TextBox ID="txtMaxStok" runat="server"></asp:TextBox></td>
            <td><asp:DropDownList ID="ddlGetirDurum" runat="server" AutoPostBack="True"></asp:DropDownList>
              
            </td>
            <td><asp:Button ID="Button1" runat="server" Text="Detayli Arama Aç" OnClick="Button1_Click" /> 
              </td>
            <td> <asp:Button ID="Button2" runat="server" Text="Sorgula" enabled="false" OnClick="Button2_Click" /></td>
              
        </tr>
   </table>




    </asp:Content>
